package com.bookshop.service;

import com.bookshop.dao.ICatalogDao;
import com.bookshop.model.CatalogModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("catalogService")
public class CatalogService {
    @Resource(name = "Icatalogdao")
    private ICatalogDao dao;
    public List<CatalogModel> findAllCata(){
        return dao.findAllCata();
    }
}
